/**
 * 验证规则
 */
export function regUsername(value) {
  return /^\w+$/.test(value);
}
export function regPassword(value) {
  return /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,11}$/.test(value);
}
export const username = [
  { required: true, message: "请输入用户名", trigger: "blur" },
  {
    min: 3,
    max: 10,
    message: "用户名的长度需要在3~10个字符之间",
    trigger: "blur",
  },
];
export const password = [
  { required: true, message: "请输入密码", trigger: "blur" },
];
